<?php
namespace lactone\Core\Models;

use ActiveRecord\Model;

class TasklogModel extends Model{

    const ACTION_CREATE = '10';
    const ACTION_UPDATE = 30;

    static $table = 'task_log';

    static $before_create = [
        'inject_time'
    ];

    /**
     * 插入数据时候自动插入时间
     * @return bool
     */
    public function inject_time(){
        $this->create_at = time();
        return true;
    }



}